package org.cybzacg.convert.model;

import lombok.Getter;

/**
 * 注册记录
 */
@Getter
public class RegistrationRecord {
    private final String key;
    private final long timestamp;
    private final RegistrationStatistics statistics;

    public RegistrationRecord(String key, RegistrationStatistics statistics) {
        this.key = key;
        this.timestamp = System.currentTimeMillis();
        this.statistics = statistics;
    }

    @Override
    public String toString() {
        return String.format("RegistrationRecord{key='%s', timestamp=%d, statistics=%s}",
                key, timestamp, statistics);
    }
}
